<template>
  <div class="content">
    <div class="section">
      <div class="sec_tuijian">
        <div class="index_tit">
          推荐医院
          <div class="dept">
            <span>内科</span>
            <span>外科</span>
          </div>
        </div>
        <div class="disea">
          <div>呼吸内科</div>
          <div>消化内科</div>
          <div>神经内科</div>
        </div>
        <div class="con">
          <div v-for="item in 9">
            <img :src="require('../assets/image/629006_1477557789381.jpg')" />
            <div>
              <p class="mouse_over">固生堂中医深圳竹子林分院</p>
              <p>一级 综合医院</p>
              <p>
                地址：广东省深圳市福田区竹子林四路与紫竹六道交汇处越众越海家园三栋三楼
              </p>
            </div>
          </div>
        </div>
      </div>
    </div>

    <div class="clearfix">
      <div class="fix_left">
        <div class="list" v-for="item in 9">
          <img :src="require('../assets/image/def-hosptial.png')" />
          <div class="con">
            <p>深圳市孙逸仙心血管医院</p>
            <p>三甲 综合医院</p>
            <p>地址：广东省深圳市罗湖区东门北路1021号</p>
            <p>电话：0755-21961012</p>
          </div>
          <div class="yuyue">
            累积
            <span>0</span>
            次预约
          </div>
        </div>
        <div class="page">
          <el-pagination
            background
            layout="prev, pager, next,jumper"
            :total="50"
            class="mt-4"
          />
        </div>
      </div>
      <div class="fix_right">
        <img :src="require('../assets/image/right-banner.png')" />
        <div class="yisheng">
          <div class="index_tit">
            相关医生
            <div class="tit_more mouse_over">
              更多
              <i class="icon4 icons4_more"></i>
            </div>
          </div>
          <ul class="yisheng_con">
            <li v-for="item in 6">
              <div>
                <img
                  :src="
                    require('../assets/picture/84AD989607734CE8AC8597DEC1AA98FA_290x200.jpg')
                  "
                />
              </div>
              <div class="con">
                <p>朱丽华 <span>主任医师</span></p>
                <p>暨南大学附属第一医院</p>
                <div class="btn">咨询医生</div>
              </div>
            </li>
          </ul>
        </div>
        <div class="yisheng">
          <div class="index_tit">
            相关阅读
            <div class="tit_more mouse_over">
              更多
              <i class="icon4 icons4_more"></i>
            </div>
          </div>
          <ul class="yuedu_list">
            <li class="mouse_over" v-for="item in 9">
              <label>·</label>孩子睡前喝牛奶，影响身高吗？
            </li>
          </ul>
        </div>
      </div>
    </div>
  </div>
</template>

<script lang="ts" setup>
import { useRouter, useRoute } from "vue-router";
import { computed, onMounted, reactive, ref, watch } from "vue";
import { useStore } from "vuex";
import { ElMessage } from "element-plus";
</script>
<style lang="less" scoped>
.content {
  width: 100%;
  padding-bottom: 20px;
}
.section {
  width: 100%;
  background-color: #fff;
  margin: 20px 0;
  display: flex;
  border-radius: 5px;
  padding-bottom: 10px;
  .sec_tuijian {
    width: 100%;
    height: 100%;
    .dept {
      margin-left: 10px;
      display: inline-block;
      > span {
        display: inline-block;
        height: 28px;
        line-height: 28px;
        padding: 0 12px;
        font-size: 14px;
        color: #333;
        border: 1px solid #e1e1e1;
        border-radius: 3px;
        font-weight: normal;
        margin-left: 10px;
        cursor: pointer;
      }
    }
    .disea {
      display: flex;
      font-size: 14px;
      margin: 10px 0px 30px 32px;
      > div {
        margin-right: 50px;
      }
    }
    .con {
      display: grid;
      justify-content: space-between;
      padding: 0 38px;
      grid-template-columns: repeat(auto-fill, 360px);
      grid-gap: 20px;
      > div {
        width: 360px;
        height: 90px;
        display: flex;
        justify-content: space-between;
        cursor: pointer;
        img {
          width: 100px;
          height: 70px;
          border-radius: 6px;
        }
        > div {
          width: 250px;
          height: 70px;
          display: flex;
          flex-direction: column;
          justify-content: space-around;
          p {
            width: 100%;
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
            font-size: 14px;
            color: #999999;
          }
          p:nth-child(1) {
            font-size: 18px;
            color: #333;
            font-weight: normal;
          }
        }
      }
    }
  }
}
.clearfix {
  width: 100%;
  display: flex;
  .fix_left {
    width: 840px;
    background-color: #fff;
    border-radius: 5px;
    padding: 0 30px 30px 30px;
    box-sizing: border-box;
    .list {
      width: calc(100% - 60px);
      height: 150px;
      border-bottom: 1px solid #e1e1e1;
      padding: 20px 0;
      box-sizing: border-box;
      display: flex;
      align-items: center;
      > img {
        height: 110px;
        width: 160px;
        cursor: pointer;
      }
      > div {
        height: 110px;
      }
      .con {
        width: 380px;
        margin-left: 20px;
        cursor: pointer;
        > p {
          margin-top: 14px;
          font-size: 14px;
          color: #999999;
        }
        > p:nth-child(1) {
          font-size: 18px;
          color: #333;
          font-weight: normal;
          margin-bottom: 13px;
          margin-top: 3px;
        }
      }
      .yuyue {
        height: 32px;
        line-height: 32px;
        width: 160px;
        border-left: 1px solid #eee;
        padding-left: 30px;
        font-size: 12px;
        color: #999999;
        span {
          font-size: 16px;
          color: #ff8100;
        }
      }
    }
    .page {
      display: flex;
      justify-content: center;
      align-items: center;
      height: 92px;
      :deep(.el-pager li.is-active) {
        background-color: #2acf8d;
      }
    }
  }
  .fix_right {
    margin-left: 20px;
    width: 340px;
    > img {
      width: 340px;
      height: 250px;
    }
    .yisheng {
      background-color: #fff;
      border-radius: 5px;
      margin-top: 20px;
      padding-bottom: 10px;

      .yisheng_con {
        width: 100%;
        li {
          padding: 12px 26px;
          display: flex;
          img {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            vertical-align: middle;
          }
          .con {
            margin-left: 23px;
            > p:nth-child(1) {
              font-size: 18px;
              font-weight: bold;
              margin-right: 12px;
              span {
                font-size: 14px;
                color: #999;
                margin-left: 4px;
              }
            }
            > p:nth-child(2) {
              font-size: 14px;
              color: #666666;
              margin: 8px 0;
            }
            .btn {
              width: 78px;
              height: 30px;
              line-height: 30px;
              border-radius: 20px;
              text-align: center;
              font-size: 12px;
              color: #fff;
              background-color: #2acf8d;
              cursor: pointer;
            }
          }
        }
      }
      .yuedu_list {
        margin-top: 8px;
        font-size: 14px;
        li {
          padding: 0 28px;
          margin-bottom: 15px;
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
          color: #666;
          height: 20px;
          line-height: 20px;
          &:hover {
            color: #2acf8d;
          }
          label {
            font-weight: bold;
            margin-right: 12px;
            font-size: 14px;
          }
        }
      }
    }
  }
}
</style>
